package com.xyazm.coupon.mapstruct;

import com.xyazm.coupon.domain.param.resource.AddCouponResourceParam;
import com.xyazm.coupon.domain.param.resource.UpdateCouponResourceParam;
import com.xyazm.coupon.domain.vo.CouponResourceVO;
import com.xyazm.coupon.entity.CouponResourceDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface CouponResourceMapstruct {

    CouponResourceMapstruct INSTANCE = Mappers.getMapper(CouponResourceMapstruct.class);

    CouponResourceVO couponResourceDTOToVO(CouponResourceDO coupon);

    List<CouponResourceVO> couponResourceDTOToVO(List<CouponResourceDO> coupon);

    CouponResourceDO addCouponResourceParamToPO(AddCouponResourceParam param);

    CouponResourceDO updateCouponResourceParamToPO(UpdateCouponResourceParam param);

}
